﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utils.Cache
{
    /// <summary>
    /// 缓存异常类
    /// </summary>
    public class CacheException : ApplicationException
    {
        /// <summary>
        /// 无参构造函数
        /// </summary>
        public CacheException() : base("CacheUtil操作异常!") { }

        /// <summary>
        /// 一个参数构造函数
        /// </summary>
        /// <param name="message">自定义异常信息</param>
        public CacheException(string message) : base(message) { }

        /// <summary>
        /// 两个参数构造函数
        /// </summary>
        /// <param name="message">自定义异常信息</param>
        /// <param name="inner">基类异常</param>
        public CacheException(string message, Exception inner) : base(message, inner) { }

    }
}
